<template>
  <div>
    <button @click="updateProps">修改props</button>
    <p>{{ count }}</p>
    <br />
    <p>{{ person }}</p>
  </div>
</template>

<script>
export default {
  name: "Update",
  props: ["count", "person"],
  methods: {
    updateProps() {
      console.log(this);
    //   this.count++
      this.person.name='wangzhongwang'
    },
  },
};
</script>

<style>
</style>